<?php
/**
 * common repository file Created by PhpStorm.
 * User: yang
 * Date: 2020/05/06
 */
namespace Common\Repository;

use Common\Model\RolesPower;

class RolesPowerRepository extends BaseRepository
{
    public function baseModel(){
        return new RolesPower();
    }

    /**
     * 获取所有数据
     * @param array $arr_option
     * @return mixed
     */
    public function extendGetAll($arr_option = [])
    {
        return RolesPower::where($arr_option['where'])->get()->toArray();
    }
}